package com.biyabi.service;

import com.biyabi.entity.Product;
import com.biyabi.pojo.ProductPojo;
import com.biyabi.pojo.ProductsData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ProductService {
    void add(Product product, MultipartFile addProductCover, MultipartFile[] addProductTop, MultipartFile[] addProductDown, String catelogId, String brandId, String skuPojo, HttpServletRequest request);
    void update(Product product,  MultipartFile[] updateProductTop, MultipartFile[] updateProductDown, String productStatus, String catelogId, String brandId, String skuPojo, HttpServletRequest request);
    ProductsData findAll(Integer currentPage, Integer pageSize,String columnName,String columnValue);
    public List<ProductPojo> findByKey(String key, String orderType, Integer currentPage, Integer pageSize);
    public List<ProductPojo> findAllByCatelog(String catelogId,String brandId,String orderType,Integer currentPage,Integer pageSize);
    public ProductPojo findOne(String id);
    public ProductPojo beanToPojo(Product product);
}
